package xyy.d3erpapi.service;

import xyy.d3erpapi.pojo.d3po.*;
import xyy.d3erpapi.pojo.poppo.PopErpSkuStockV2Dto;
import xyy.d3erpapi.pojo.poppo.SellerOrderDeliverDetailDto;
import xyy.d3erpapi.pojo.poppo.SellerOrderDeliverInfoDto;

import java.util.List;
import java.util.Map;
import java.util.concurrent.CompletableFuture;
import java.util.concurrent.Future;

public interface D3Service {
    //回调接口 验证签名 方法
    boolean validateSignature(Map<String, String> publicParams, String content, String sign);
    //调用点3接口，加密方法
    String validateSignatureToUpper(Map<String, String> publicParams, String jsonBusinessParams);
    // 处理库存更新的异步方法
    CompletableFuture<List<PopErpSkuStockV2Dto>> processInventoryUpdate(InventoryUpdateRequest request);
    //处理点三物流数据
    CompletableFuture<List<SellerOrderDeliverInfoDto>> convertToOrderDeliverInfo(LogisticsRequestDto  logisticsRequestDto );
    //查询点三出库信息
    List<SellerOrderDeliverDetailDto> QueryD3OrderInfo(List<String> ordernos);
}
